




//
//  SectionHeader.m
//  FM
//
//  Created by MB__Lee on 2018/4/9.
//  Copyright © 2018年 MB__Lee. All rights reserved.
//

#import "SectionHeader.h"

@interface SectionHeader()
@property (weak, nonatomic) IBOutlet UILabel *Title;


@end

@implementation SectionHeader


-(void)setModel:(MiddleModel *)model{
    _model = model;
    self.Title.text  = model.name;
}
- (IBAction)deleteAction:(UIButton *)sender {
    
    if (_sectionDeleteBlock) {
        _sectionDeleteBlock();
    }
    
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
